toolpalette: Use element names
authorMatthias Clasen <mclasen@redhat.com>
Sun, 1 Nov 2015 01:02:36 +0000 (21:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 1 Nov 2015 01:02:36 +0000 (21:02 -0400)
Give the GtkToolPalette and GtkToolItemGroup the element
names toolpalette and toolitemgroup.

gtk/gtktoolitemgroup.c
gtk/gtktoolpalette.c

index 1b734b55b70ca03bcffa34bb25b702125f6c2d2d..7d362b2b6a0d8a72cd58a003d188fc4eb7cd409d 100644 (file)
  * #GtkToolItems to a palette like container with different
  * categories and drag and drop support.
  *
+ * # CSS nodes
+ *
+ * GtkToolItemGroup has a single CSS node named toolitemgroup.
+ *
  * Since: 2.20
  */
 
@@ -1684,6 +1688,8 @@ gtk_tool_item_group_class_init (GtkToolItemGroupClass *cls)
                                                                 G_MAXINT,
                                                                 0,
                                                                 GTK_PARAM_READWRITE));
+
+  gtk_widget_class_set_css_name (wclass, "toolitemgroup");
 }
 
 /**
index 82e76375da06faa42b51218d8b3177f3b51f6d98..c51fb0b24cbf87e672b03bee1593dc8bcf2e4855 100644 (file)
  *                                 GDK_ACTION_COPY);
  * ]|
  *
+ * # CSS nodes
+ *
+ * GtkToolPalette has a single CSS node named toolpalette.
+ *
  * Since: 2.20
  */
 
@@ -1024,6 +1028,8 @@ gtk_tool_palette_class_init (GtkToolPaletteClass *cls)
                                                                     P_("Whether the item group should receive extra space when the palette grows"),
                                                                     DEFAULT_CHILD_EXPAND,
                                                                     GTK_PARAM_READWRITE));
+
+  gtk_widget_class_set_css_name (wclass, "toolpalette");
 }
 
 /**